Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext


~Keiko Cisjipysonakol 29.Dec.03 04:57 PM a Web browser
Domino Designer All Releases All Platforms


I have a problem to assign 'dateString' to a multiple value field in a Notes Form. I am new to JavaScript.
Thank you & Regards

var f = document.forms[0]
endDate = new Date(f.EndDate.value);
startDate= new Date(f.StartDate.value);
//alert(endDate);
aDay = 24*60*60*1000;
// alert(aDay);
dbd= Math.floor((endDate-startDate)/aDay);
then = new Date(endDate.getTime()-(dbd*aDay));
for (i=then.getTime();i<endDate.getTime();i+=aDay) {
date = new Date(i);
year = date.getYear();
dateString = (date.getMonth()+1)+'/'+date.getDate()+'/'+year;
}






JavaScript and multiple value field... (~Keiko Cisjipys... 29.Dec.03)
. . RE: JavaScript and multiple value f... (~Bill Frokimari... 29.Dec.03)
. . . . RE: JavaScript and multiple value f... (~Keiko Cisjipys... 29.Dec.03)
. . . . . . RE: JavaScript and multiple value f... (~Bella Deswevit... 30.Dec.03)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS